var AddressItem = React.createClass({
    
    render:function(){
        // debugger
        var addr = this.props.addr;
        return (
           <div className="m-addr_item">
                <div className="item-left">
                    <img className="address-img item-cover" src={addr.picture&&addr.picture[0]} />
                </div>
                <div className="item-right">
                    <h3 className="item-name">{addr.name}</h3>
                    <p className="item-desc">{addr.description}</p>
                </div>
                <div className="item-bottom">
                    <span className="item-address">{addr.address}</span>
                    <span className="item-type">{addr.type}</span>
                    <span>IDis：{addr.id}</span>
                    <a onClick={this.props.selectItem.bind(null, addr)} >{this.props.check?"取消精选":"确认精选"}</a>
                    
                </div>
            </div>
        )
    }
});

module.exports = AddressItem;